<?php


namespace apps\marriage\core\service;


use apps\marriage\core\model\UserWithdrawAccount;
use vm\com\BaseModel;
use vm\com\BaseService;

class UserWithdrawAccountService extends BaseService
{

    /**
     * @return UserWithdrawAccount
     */
    protected function getModel()
    {
        return new UserWithdrawAccount();
    }

    public function save(array $data)
    {
        return $this->insert($data, true);
    }

    public function getUserId($userId)
    {
        return $this->info(['user_id' => $userId]);
    }
}